package tw.arduino.module;

public class PublicObj {
	private static PublicObj instance = null;
	public static String[] PortListArr=RS232.listComPorts();
	public static long numRx=0,numTx=0;
	public static String comSetting[]=new String[5];

	
	public static String[] getComSetting() {
		return comSetting;
	}

	public static void setComSetting(String[] comSetting) {
		PublicObj.comSetting = comSetting;
	}

	public static synchronized PublicObj getInstance() {
		if (instance == null) {
			instance = new PublicObj();
		}
		return instance;
	}

	public static String[] refreshPortListArr() {
		PortListArr=RS232.listComPorts();
		return PortListArr;
	}

	public static void setPortListArr(String[] portListArr) {
		PortListArr = portListArr;
	}
	
	
}
